package com.coffee.daili.api.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.daili.api.query.DailiSkuQuery;
import com.coffee.daili.api.req.InsertSkuReq;
import com.coffee.daili.api.result.DailiSkuResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface DailiSkuService {

	Page<DailiSkuResult> getPager(DailiSkuQuery param, PagerInfo pr);
	
	Integer count(DailiSkuQuery param);
	
	DailiSkuResult getDetail(Integer id);
	
	List<DailiSkuResult> getList(DailiSkuQuery param, PagerInfo pr);
	
	List<DailiSkuResult> getList(DailiSkuQuery param);
	
	List<DailiSkuResult> getList();

	void delete(Integer id);

	void addOrUpdate(DailiSkuResult result)throws BusinessException;

	void insert(InsertSkuReq req)throws BusinessException;

	Map<Integer,DailiSkuResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,DailiSkuResult> getItemMap();
	
}